list-[id].vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 页面导航 -->
  6. <HomePageNavigation></HomePageNavigation>
  7. <!-- 广告1 -->
  8. <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
  9. <!-- 二级导航列表 -->
  10. <div class="nav2top" v-if="parent_name != ''"></div>
  11. <div class="nav2" v-if="parent_name != ''">
  12. <ul class="inner">
  13. <li class="home">
  14. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  15. </li>
  16. <li class="titleList" v-for="(item, index) in secondNav" :key="index">
  17. <NuxtLink :href="getLinkPath(item)" :title="item.alias"
  18. :target="item.is_url == 1 ? '_blank' : '_self'">
  19. <span class="nav2_title">{{ item.alias }}</span>
  20. </NuxtLink>
  21. </li>
  22. </ul>
  23. </div>
  24. <div class="nav2btm" v-if="parent_name != ''"></div>
  25. <!-- 面包屑导航 -->
  26. <div class="breadcrumb breadcrumb_phone_none">
  27. <div class="inner">
  28. <span class="location">当前位置:</span>
  29. <el-breadcrumb :separator-icon="ArrowRight">
  30. <el-breadcrumb-item>
  31. <NuxtLink to="/">首页</NuxtLink>
  32. </el-breadcrumb-item>
  33. <el-breadcrumb-item v-if="parent_name != ''">
  34. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  35. </el-breadcrumb-item>
  36. <el-breadcrumb-item>{{ name }}</el-breadcrumb-item>
  37. </el-breadcrumb>
  38. </div>
  39. </div>
  40. <div class="breadcrumb_box breadcrumb_pc_none">
  41. <span class=" ">当前位置:</span>
  42. <NuxtLink to="/">首页</NuxtLink>
  43. <span class=" ">&gt;</span>
  44. <NuxtLink
  45. v-if="parent_name != ''"
  46. :to="`/${parent_pinyin}/index.html`"
  47. >
  48. {{ parent_name }}
  49. </NuxtLink>
  50. <span class=" " v-if="parent_name != ''" >&gt;</span>
  51. <span class=" ">{{ name }}</span>
  52. </div>
  53. <!-- 资讯列表 -->
  54. <div class="newsList">
  55. <div class="inner">
  56. <div class="innerLeft">
  57. <ul class="list">
  58. <li v-for="(item, index) in newsList" :key="index">
  59. <NuxtLink :href="getLinkPathDetail(item)" :title="item.alias">
  60. <span class="listTitle">{{ item.title }}</span>
  61. <span class="time">{{ getTime(item.updated_at, 'month', 1) }}</span>
  62. </NuxtLink>
  63. </li>
  64. </ul>
  65. <!-- 分页器 -->
  66. <div class="pagination page_phone_none" v-if="total">
  67. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  68. v-model:page-size="pageSize" prev-text="上一页" next-text="下一页" :current-page="pageNum"
  69. @current-change="changePage" />
  70. </div>
  71. <div class="pagination page_pc_none" v-if="total">
  72. <el-pagination
  73. pager-count="5"
  74. size="small"
  75. background
  76. layout=" pager "
  77. :total="total"
  78. class="mt-4"
  79. v-model:page-size="pageSize"
  80. :current-page="pageNum"
  81. @current-change="changePage" />
  82. </div>
  83. </div>
  84. <div class="innerRight">
  85. <DetailHotNews></DetailHotNews>
  86. <DetailHotNews2></DetailHotNews2>
  87. </div>
  88. </div>
  89. </div>
  90. <!-- 列表页广告二 -->
  91. <HomeAdvertising :imgurl="adImg2"></HomeAdvertising>
  92. <!-- 页面底部 -->
  93. <HomeFoot1></HomeFoot1>
  94. </div>
  95. </template>
  96. <script setup>
  97. import { onMounted } from 'vue';
  98. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination, ElMessage } from 'element-plus'
  99. import { ArrowRight } from '@element-plus/icons-vue'
  100. // const nuxtApp = useNuxtApp();
  101. // const axios = nuxtApp.$axios;
  102. //1.获得路由id start ---------------------------------------->
  103. const route = useRoute();
  104. let articleId = 0;//路由id
  105. let pageNum = ref(2);
  106. let total = ref(1);
  107. let pageSize = ref(20);
  108. //获得当前的完整路径
  109. const fullPath = route.path;
  110. //拆分,取出来中间这一段,然后提取数字部分
  111. const segments = fullPath.split('/');
  112. const targetSegment = segments[1];
  113. //const numberPart = targetSegment.match(/\d+$/)?.[0];
  114. //let routeId = 20 //排除路径错误可以打开这个
  115. //通过导航路径反向查询导航id
  116. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  117. method: 'GET',
  118. query: {
  119. 'pinyin': targetSegment,
  120. },
  121. });
  122. if (getRouteId.code == 200) {
  123. articleId = getRouteId.data.category_id
  124. } else {
  125. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  126. console.log("错误位置:通过url路径查询导航池id")
  127. console.log("后端错误反馈:", getRouteId.message)
  128. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  129. }
  130. //获得html前的数字
  131. // const pageUrl = segments[2];
  132. // const pageNumber = pageUrl.split('.')[0];
  133. // console.log("当前URL中的页码:")
  134. // console.log(pageNumber)//2
  135. // pageNum.value = parseInt(pageNumber);
  136. pageNum.value = parseInt(route.params.id);
  137. //1.获得路由id end ---------------------------------------->
  138. //2.页面数据 start ---------------------------------------->
  139. //2.2新闻列表
  140. const newsList = ref([]);
  141. let newslists = async () => {
  142. const listData = await requestDataPromise('/web/getWebsiteArticleList', {
  143. method: 'GET',
  144. query: {
  145. 'page': pageNum.value,
  146. 'pageSize': pageSize.value,
  147. 'catid': articleId
  148. },
  149. });
  150. if (listData.code == 200) {
  151. newsList.value = listData.data.rows;
  152. total.value = listData.data.count;
  153. // console.log('news111111', newsList.value);
  154. } else {
  155. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  156. // console.log("错误位置:获取新闻列表")
  157. // console.log("后端错误反馈1111:", listData.message)
  158. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  159. }
  160. }
  161. //获得列表
  162. newslists();
  163. //分页事件
  164. let changePage = (value) => {
  165. console.log("当前页码", value);
  166. navigateTo(`/${targetSegment}/list-${value}.html`)
  167. }
  168. //2.3获得页面名称
  169. const name = ref('')
  170. let getPageName = async () => {
  171. const pageName = await requestDataPromise('/web/getOneWebsiteCategory', {
  172. method: 'GET',
  173. query: {
  174. 'catid': articleId
  175. },
  176. });
  177. if (pageName.code == 200) {
  178. name.value = pageName.data.alias
  179. } else {
  180. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  181. console.log("错误位置:设置页面标题")
  182. console.log("后端错误反馈:", pageName.message)
  183. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  184. }
  185. }
  186. //获得列表
  187. getPageName();
  188. //2.页面数据 end ---------------------------------------->
  189. //3.二级栏目 start ---------------------------------------->
  190. //3.1通过id获取父栏目
  191. const parent_name = ref([]);
  192. const parent_id = ref([]);
  193. const parent_pinyin = ref("");
  194. let getParentNav = async () => {
  195. const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
  196. method: 'GET',
  197. query: {
  198. 'catid': articleId
  199. },
  200. });
  201. if (listData.code == 200) {
  202. // console.log(111999)
  203. // console.log(listData.data);
  204. parent_name.value = listData.data.parent_name;
  205. parent_id.value = listData.data.parent_id;
  206. parent_pinyin.value = listData.data.parent_pinyin;
  207. } else {
  208. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  209. // console.log("错误位置:获取新闻列表")
  210. // console.log("后端错误反馈:", listData.message)
  211. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  212. }
  213. getSecondNav();
  214. }
  215. //获得父级栏目详情
  216. getParentNav();
  217. // 3.2获取二级栏目
  218. const secondNav = ref([]);
  219. let getSecondNav = async () => {
  220. const listData = await requestDataPromise('/web/getWebsiteModelCategory', {
  221. method: 'GET',
  222. query: {
  223. 'placeid': 1,
  224. 'pid': parent_id.value,
  225. 'num': 8,
  226. },
  227. });
  228. console.log('listData', listData);
  229. // secondNav.value = listData.data;
  230. if (listData.code == 200) {
  231. secondNav.value = listData.data;
  232. console.log('secondNav', secondNav.value);
  233. } else {
  234. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  235. console.log("错误位置:获取新闻列表")
  236. console.log("后端错误反馈:", listData.message)
  237. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  238. }
  239. }
  240. //3.二级栏目 end ---------------------------------------->
  241. //4.设置seo信息 start---------------------------------------->
  242. //4.1 设置seo信息
  243. const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
  244. method: 'GET',
  245. query: {
  246. 'catid': articleId
  247. },
  248. });
  249. if (setData.code == 200) {
  250. let seoTitle = setData.data.seo_title;
  251. let seoDescription = setData.data.seo_description;
  252. let seoKeywords = setData.data.seo_keywords;
  253. let seoSuffix = setData.data.suffix;
  254. let seoName = setData.data.website_name;
  255. useSeoMeta({
  256. title: seoTitle + "_" + seoName + "_" + seoSuffix,
  257. meta: [
  258. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  259. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  260. { name: 'viewport', content:"width=device-width,initial-scale=1,user-scalable=no"}
  261. ]
  262. });
  263. } else {
  264. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  265. // console.log("错误位置:设置列表页面SEO数据")
  266. // console.log("后端错误反馈:", setData.message)
  267. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  268. }
  269. //4.设置seo信息 end---------------------------------------->
  270. //5.广告 start---------------------------------------->
  271. let adImg1 = ref({});
  272. let adImg2 = ref({});
  273. onMounted(async () => {
  274. //从客户端获取行政职能部门 加快打开速度
  275. const { $webUrl, $CwebUrl } = useNuxtApp();
  276. //广告1
  277. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_list_0001`
  278. const responseAd1 = await fetch(url, {
  279. headers: {
  280. 'Content-Type': 'application/json',
  281. 'Userurl': $CwebUrl,
  282. 'Origin': $CwebUrl
  283. }
  284. });
  285. const resultAd1 = await responseAd1.json();
  286. adImg1.value = resultAd1.data[0];
  287. console.log('adImg1', adImg1.value);
  288. //广告2
  289. let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_list_0002`
  290. const responseAd2 = await fetch(url2, {
  291. headers: {
  292. 'Content-Type': 'application/json',
  293. 'Userurl': $CwebUrl,
  294. 'Origin': $CwebUrl
  295. }
  296. });
  297. const resultAd2 = await responseAd2.json();
  298. adImg2.value = resultAd2.data[0];
  299. })
  300. //5.广告 end---------------------------------------->
  301. // 6.跳转 start ---------------------------------------->
  302. const getLinkPathDetail = (item) => {
  303. if (item.islink == 1) {
  304. return `${item.linkurl}`;
  305. } else {
  306. return `/${item.pinyin}/${item.id}.html`;
  307. }
  308. }
  309. // 6.跳转 end ---------------------------------------->
  310. </script>
  311. <style lang="less" scoped>
  312. #newsList {
  313. width: 100%;
  314. overflow: hidden;
  315. }
  316. .nav2top {
  317. width: 1250px;
  318. height: 3px;
  319. margin: 0 auto;
  320. background-color: #a01c0e;
  321. }
  322. .nav2btm {
  323. width: 1200px;
  324. height: 3px;
  325. margin: 0 auto;
  326. background-color: #a01c0e;
  327. }
  328. .nav2 {
  329. width: 100%;
  330. height: 48px;
  331. background-color: #a01c0e;
  332. .inner {
  333. width: 1250px;
  334. height: 48px;
  335. line-height: 48px;
  336. padding: 0 45px;
  337. margin: 0 auto;
  338. box-sizing: border-box;
  339. display: flex;
  340. // justify-content: space-between;
  341. .titleList {
  342. font-family: Microsoft YaHei, Microsoft YaHei;
  343. font-weight: bold;
  344. font-size: 14px;
  345. color: #FFFFFF;
  346. .nav2_title {
  347. display: inline-block;
  348. font-family: Microsoft YaHei, Microsoft YaHei;
  349. font-weight: bold;
  350. font-size: 14px;
  351. color: #FFFFFF;
  352. }
  353. a {
  354. padding: 0 38px;
  355. color: #FFFFFF;
  356. border-left: 1px solid #7E1C11;
  357. }
  358. //鼠标点击后的样式
  359. .nav2_title_active {
  360. display: inline-block;
  361. font-family: Microsoft YaHei, Microsoft YaHei;
  362. font-weight: bold;
  363. font-size: 14px;
  364. color: #FFFFFF;
  365. border-bottom: 1px solid #FFFFFF;
  366. }
  367. }
  368. .titleList:hover {
  369. a {
  370. color: #a01c0e;
  371. .nav2_title {
  372. border-bottom: 1px solid #FFFFFF;
  373. }
  374. }
  375. }
  376. .home {
  377. width: 100px;
  378. font-family: Microsoft YaHei, Microsoft YaHei;
  379. font-weight: bold;
  380. font-size: 14px;
  381. color: #F8ECD2;
  382. a {
  383. color: #F8ECD2;
  384. margin-right: 39px;
  385. }
  386. }
  387. }
  388. }
  389. //导航条
  390. .breadcrumb {
  391. width: 100%;
  392. height: 22px;
  393. margin-bottom: 30px;
  394. font-family: Microsoft YaHei, Microsoft YaHei;
  395. font-weight: 400;
  396. font-size: 20px;
  397. color: #666666;
  398. line-height: 23px;
  399. text-align: left;
  400. font-style: normal;
  401. text-transform: none;
  402. margin-top: 40px;
  403. :deep(.el-breadcrumb) {
  404. display: inline-block;
  405. vertical-align: -4px;
  406. }
  407. :deep(.el-breadcrumb__inner a),
  408. :deep(.el-breadcrumb__inner.is-link) {
  409. color: #666666;
  410. font-weight: 400;
  411. text-decoration: none;
  412. transition: var(--el-transition-color);
  413. }
  414. span {
  415. font-family: Microsoft YaHei, Microsoft YaHei;
  416. font-weight: 400;
  417. font-size: 20px;
  418. color: #666666;
  419. line-height: 23px;
  420. text-align: left;
  421. font-style: normal;
  422. text-transform: none;
  423. }
  424. span:hover {
  425. color: #666666;
  426. }
  427. .location {
  428. margin-right: 5px;
  429. width: 100px;
  430. height: 22px;
  431. font-family: Microsoft YaHei, Microsoft YaHei;
  432. font-weight: 400;
  433. font-size: 20px;
  434. color: #666666;
  435. line-height: 23px;
  436. text-align: left;
  437. font-style: normal;
  438. text-transform: none;
  439. }
  440. }
  441. // 资讯列表
  442. .newsList {
  443. width: 100%;
  444. // height: 675px;
  445. overflow: hidden;
  446. margin-bottom: 70px;
  447. .inner {
  448. width: 1200px;
  449. .innerLeft,
  450. .innerRight {
  451. border-top: 1px solid #ccc;
  452. }
  453. .innerLeft {
  454. width: 820px;
  455. margin-right: 30px;
  456. .list {
  457. margin-bottom: 70px;
  458. li {
  459. width: 820px;
  460. padding: 15px 0;
  461. a {
  462. display: flex;
  463. justify-content: space-between;
  464. }
  465. .listTitle {
  466. // float: left;
  467. display: inline-block;
  468. width: 486px;
  469. white-space: nowrap;
  470. overflow: hidden;
  471. text-overflow: ellipsis;
  472. font-family: Microsoft YaHei, Microsoft YaHei;
  473. font-weight: 400;
  474. font-size: 20px;
  475. color: #333333;
  476. text-align: left;
  477. font-style: normal;
  478. text-transform: none;
  479. }
  480. .time {
  481. // float: right;
  482. font-family: Microsoft YaHei, Microsoft YaHei;
  483. font-weight: 400;
  484. font-size: 18px;
  485. color: #333333;
  486. }
  487. }
  488. >li:hover .listTitle {
  489. color: #a01c0e;
  490. }
  491. >li:nth-child(5n) {
  492. border-bottom: 1px solid #D9D9D9;
  493. padding-bottom: 30px;
  494. }
  495. >li:nth-child(5n+1) {
  496. span {
  497. font-weight: bold;
  498. }
  499. font-weight: bold;
  500. padding-top: 30px;
  501. }
  502. }
  503. >.pagination {
  504. width: 800px;
  505. height: 34px;
  506. margin-left: 141px;
  507. display: flex;
  508. justify-content: center;
  509. margin: 0;
  510. // 鼠标移入后字体颜色
  511. .el-pagination::v-deep :hover {
  512. color: #a01c0e;
  513. }
  514. .el-pagination.is-background::v-deep .btn-next,
  515. .el-pagination.is-background::v-deep .btn-prev {
  516. width: 70px;
  517. height: 34px;
  518. margin: 0px 10px;
  519. border-radius: 4px;
  520. }
  521. .el-pagination.is-background::v-deep .el-pager li {
  522. margin: 0px 10px;
  523. width: 38px;
  524. height: 34px;
  525. border-radius: 4px;
  526. }
  527. .el-pagination.is-background::v-deep .btn-next.is-active,
  528. .el-pagination.is-background::v-deep .btn-prev.is-active,
  529. .el-pagination.is-background::v-deep .el-pager li.is-active {
  530. background-color: #a01c0e;
  531. color: #fff;
  532. }
  533. }
  534. }
  535. .innerRight {
  536. width: 350px;
  537. height: 1242px;
  538. border-bottom: 1px solid #ccc;
  539. // height: 605px;
  540. }
  541. }
  542. }
  543. //资讯推荐
  544. .zixuntuijian {
  545. width: 100%;
  546. height: 290px;
  547. margin-bottom: 70px;
  548. .innerLeft {
  549. // 左侧
  550. .zixunLeft {
  551. margin-right: 30px;
  552. }
  553. .zixunRight,
  554. .zixunLeft {
  555. float: left;
  556. width: 380px;
  557. height: 290px;
  558. // 标题部分
  559. >.title {
  560. width: 380px;
  561. }
  562. >.title>h3 {
  563. height: 36px;
  564. font-family: Source Han Sans, Source Han Sans;
  565. font-weight: bold;
  566. font-size: 24px;
  567. color: #000000;
  568. line-height: 28px;
  569. text-align: left;
  570. font-style: normal;
  571. text-transform: none;
  572. border-bottom: 1px solid #a01c0e;
  573. }
  574. >.title>h3>span {
  575. float: right;
  576. width: 56px;
  577. height: 20px;
  578. line-height: 24px;
  579. font-weight: 400;
  580. font-size: 14px;
  581. color: #999999;
  582. font-style: normal;
  583. text-transform: none;
  584. }
  585. .photo_text {
  586. >li:first-child {
  587. width: 380px;
  588. height: 120px;
  589. margin-top: 20px;
  590. margin-bottom: 15px;
  591. position: relative;
  592. >img {
  593. float: left;
  594. width: 160px;
  595. height: 120px;
  596. }
  597. >div {
  598. float: left;
  599. width: 220px;
  600. height: 120px;
  601. padding-left: 15px;
  602. padding-top: 6px;
  603. box-sizing: border-box;
  604. background-color: #f6f6f6;
  605. >h5 {
  606. width: 200px;
  607. height: 54px;
  608. display: -webkit-box;
  609. -webkit-box-orient: vertical;
  610. -webkit-line-clamp: 2;
  611. overflow: hidden;
  612. text-overflow: ellipsis;
  613. word-break: break-all;
  614. font-family: Source Han Sans, Source Han Sans;
  615. font-weight: 500;
  616. font-size: 18px;
  617. color: #333333;
  618. line-height: 26px;
  619. text-align: left;
  620. font-style: normal;
  621. text-transform: none;
  622. }
  623. >p {
  624. width: 200px;
  625. height: 22px;
  626. line-height: 20px;
  627. position: absolute;
  628. bottom: 5px;
  629. right: 0;
  630. >span {
  631. display: inline-block;
  632. // width: 100px;
  633. height: 18px;
  634. font-family: Source Han Sans, Source Han Sans;
  635. font-weight: 400;
  636. font-size: 12px;
  637. color: #999999;
  638. text-align: left;
  639. line-height: 14px;
  640. font-style: normal;
  641. text-transform: none;
  642. }
  643. >span:last-child {
  644. // width: 90px;
  645. text-align: right;
  646. margin-left: 20px;
  647. }
  648. }
  649. }
  650. }
  651. >li {
  652. width: 380px;
  653. height: 25px;
  654. white-space: nowrap;
  655. overflow: hidden;
  656. text-overflow: ellipsis;
  657. font-family: PingFang SC, PingFang SC;
  658. font-weight: 500;
  659. font-size: 18px;
  660. color: #333333;
  661. line-height: 21px;
  662. text-align: left;
  663. font-style: normal;
  664. text-transform: none;
  665. margin-bottom: 10px;
  666. em {
  667. display: inline-block;
  668. width: 8px;
  669. height: 8px;
  670. border-radius: 8px;
  671. margin-right: 10px;
  672. background-color: #d9d9d9;
  673. }
  674. }
  675. >li:hover {
  676. color: #a01c0e;
  677. }
  678. >li:hover em {
  679. background-color: #a01c0e;
  680. }
  681. }
  682. }
  683. }
  684. .innerRight {
  685. width: 381px;
  686. height: 290px;
  687. background-color: #fbfbfb;
  688. >.title {
  689. width: 380px;
  690. height: 40px;
  691. line-height: 40px;
  692. border-top: 1px solid #a01c0e;
  693. border-bottom: 1px solid #e7e7e7;
  694. >h4 {
  695. font-family: Microsoft YaHei, Microsoft YaHei;
  696. font-weight: 400;
  697. margin-left: 20px;
  698. font-size: 20px;
  699. color: #000000;
  700. text-align: left;
  701. font-style: normal;
  702. text-transform: none;
  703. >span {
  704. float: right;
  705. font-family: Microsoft YaHei, Microsoft YaHei;
  706. font-weight: 400;
  707. font-size: 14px;
  708. margin-right: 10px;
  709. color: #999999;
  710. text-align: left;
  711. font-style: normal;
  712. text-transform: none;
  713. }
  714. }
  715. }
  716. .rightList {
  717. height: 540px;
  718. margin-top: 20px;
  719. >li {
  720. height: 100px;
  721. margin-bottom: 10px;
  722. >img {
  723. width: 150px;
  724. height: 100px;
  725. }
  726. >p {
  727. width: 219px;
  728. height: 100px;
  729. padding-left: 12px;
  730. font-family: PingFang SC, PingFang SC;
  731. font-weight: 400;
  732. font-size: 16px;
  733. color: #333333;
  734. line-height: 22px;
  735. text-align: left;
  736. font-style: normal;
  737. text-transform: none;
  738. }
  739. >p:hover {
  740. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  741. }
  742. }
  743. }
  744. }
  745. }
  746. </style>
  747. <style lang="less" scoped>
  748. @media screen and (min-width:801px){/*pc*/
  749. .breadcrumb_pc_none{display:none!important;}
  750. .page_pc_none{display:none!important;}
  751. .pc_none{display:none;}
  752. }
  753. @media screen and (max-width:800px){/*ipad_phone*/
  754. .newsList .inner{
  755. width:92%;margin:0px auto;
  756. }
  757. .newsList .inner .innerLeft{width:100%;float:none;margin:0px auto;border-top:solid 1px #A01C0E;}
  758. .newsList .inner .innerLeft .list li .time{display:none!important;}
  759. .newsList .inner .innerLeft .list li{display:block;width:100%;padding:14px 0!important;}
  760. .newsList .inner .innerLeft .list li .listTitle{font-size:16px;font-weight:normal!important;}
  761. .newsList .inner .innerLeft > .pagination{width:100%;}
  762. .newsList .inner .innerLeft > .pagination .el-pagination.is-background .el-pager li{margin:0px 4px;}
  763. .newsList .inner .innerLeft .list{margin-bottom:10px;}
  764. .breadcrumb_box{
  765. height:22px;width:100%;margin:22px auto 9px;
  766. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  767. width:92%;
  768. font-size:14px;
  769. color:#666;
  770. *{
  771. font-size:14px;
  772. display:inline ;
  773. color:#666;
  774. line-height:22px;height:22px;
  775. margin-right:5px;
  776. }
  777. }
  778. .newsList{margin-bottom:24px;}
  779. .newsList .inner .innerRight{display:none!important;}
  780. .pagination /deep/.el-pagination.is-background .el-pager li{margin:0px 4px;}
  781. .breadcrumb_phone_none{display:none!important;}
  782. .page_phone_none{display:none!important;}
  783. .phone_none{display:none;}
  784. }
  785. </style>